//
//  PlayView.h
//  RadioUrl
//
//  Created by ios on 16/4/22.
//  Copyright © 2016年 NIIT. All rights reserved.
//

#import <UIKit/UIKit.h>


@protocol PlayViewDelegate
@optional
-(void)playBtnPressed;
-(void)preBtnPressed;
-(void)nextBtnPressed;
-(void)backBtnPressed;
-(void)sliderSeekToTime;
@end
@interface PlayView : UIView
@property(nonatomic,strong) NSTimer *timer;
@property (weak, nonatomic) IBOutlet UIScrollView *scrollView;
@property (weak, nonatomic) IBOutlet UILabel *radioTitle;

@property (weak, nonatomic) IBOutlet UIButton *playButton;
@property (weak, nonatomic) IBOutlet UIButton *nextButton;
@property (weak, nonatomic) IBOutlet UIButton *preButton;

@property (weak, nonatomic) IBOutlet UIImageView *radioImage;





@property (weak, nonatomic) IBOutlet UILabel *endTime;

@property (weak, nonatomic) IBOutlet UISlider *sliderView;
@property(nonatomic,weak) id<PlayViewDelegate> delegate;
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;


-(void)playViewWithImageName:(NSString *)imageName radioName:(NSString *)radioName endTime:(NSString *)timeLength;

@end
